package cn.gok.testgit;

/**
 * @ClassName Test
 * @Description TODO
 * @Author HP
 * @Date 9:35 2022/7/4
 * @Version 1.0
 **/
public class Test {
    public static void main(String[] args) {

        String Str1 = new String("www.runoob.com");
        char[] Str2 = new char[6];

        try {
            Str1.getChars(4, 10, Str2, 0);
            System.out.print("拷贝的字符串为：" );
            System.out.println(Str2 );
        } catch( Exception ex) {
            System.out.println("触发异常...");
        }
    }
}
